package com.scau.yangsuiyu.estore.util;

import java.util.HashMap;
import java.util.Map;

/**
 * @author suiyu_yang
 * @description 订单状态的枚举
 * @date 2019-06-20 23:43
 * @email suiyu_yang@163.com
 */
public class OrderStatus {
    //    6.待付款（unpay）、待发货（undelivered）、待收货（unreceived）、待评价（unreviewed）

    public static String UN_PAY = "unpay";
    public static String UN_DELIVERED = "undelivered";
    public static String UN_RECEIVED = "unreceived";
    public static String UN_REVIEWED = "unreviewed";
    public static Map<String, String> statusMap;

    static {
        statusMap = new HashMap<>();
        statusMap.put(UN_PAY, "待付款");
        statusMap.put(UN_DELIVERED, "待发货");
        statusMap.put(UN_RECEIVED, "待收货");
        statusMap.put(UN_REVIEWED, "待评价");
    }
}
